package start;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Main {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("META-INF\\beans.xml");
        A a = (A) context.getBean("aBean");a.setName("Hello");
        A a2 = (A) context.getBean("aBean_secondId");a2.getName();
        A a3 = (A) context.getBean("aBean_alias");a2.getName();
        A.C c = (A.C)context.getBean("cBean");
        B b = (B) context.getBean("bBean");
    }
}
